package com.xl.sst.biz.impl;


import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.xl.sst.biz.BigClassBiz;
import com.xl.sst.dao.BigClassDao;
import com.xl.sst.vo.BigClass;
import com.xl.sst.vo.SmallClass;

@Service
public class BigClassBizImpl implements BigClassBiz{

	@Resource
	private BigClassDao bigClassDao;

	public List<BigClass> selectAll() {
		List<BigClass> s = bigClassDao.selectAllBigClass();
		for(BigClass b:s) {
			List<SmallClass> s1 = b.getCase1();
			for(SmallClass s2:s1) {
				
				List<String> s3 = bigClassDao.selectBysmallClassId(s2.getId());
				s2.setCaselis(s3);
			}
		}
		
		return s;
		
		/*List<BigClass> b = bigClassDao.selectAllBigClass();
		if(b!=null) {
			for(BigClass s:b) {
				List<SmallClass> s1 = bigClassDao.selectByBigClassId(s.getBigclass_id());
				s.setCase1(s1);
				if(s1!=null) {
					for(SmallClass s2:s1) {
						List<String> s11=bigClassDao.selectBysmallClassId(s2.getId());
						s2.setCaselis(s11);
					}	
				}
					
			}
		}
		return b;*/
		
		
	}

	
	
	

}
